import 'package:get/get.dart';
import 'package:logmanager/pages/home/home_page.dart';
import 'package:logmanager/pages/login/login_binding.dart';

import '../main.dart';
import '../pages/home/home_binding.dart';
import '../pages/login/login_page.dart';

// 路由配置

abstract class Routes {
  static const root = '/';
  static const test = '/test/TestPage';
  static const RefreshLoadmorePage = '/test/RefreshLoadmorePage';

  /// 登录页面
  static const login = '/login/loginPage';
  static const homePage = '/home/homePage';
  static const doctorManage = '/doctor/DoctorManagePage';
  static const callOnRecord = '/doctor/callOnRecordPage';
  static const callOnAdd = '/callon/add/callOnAddPage';

  ///新增医生
  static const doctorCreate = '/doctor/add/doctorPage';

  ///关联医生
  static const doctorRelevance = '/doctor/relevance/doctorRelevance';
  static const doctorData = '/doctor/data/doctorData';

  ///医生详情
  static const doctorDetail = '/doctor/manage/doctorDetailPage';

  //岗位管理
  static const postManagement = '/post/manager_page.dart';
  static const editPostmanagement = '/post/editPostManagement_page.dart';

  //员工管理
  static const staffManagement = '/staff/manager_page.dart';
  static const editStaffManagement = '/staff/editStaffManage_page.dart';

  //部门管理
  static const departmentManagement = '/department/manager_page.dart';
  static const editDepartmentManagement =
      '/department/editDepartment_page.dart';

  //账户详情
  static const accountPage = '/login/account/accountdetailsPage';

  static const callOnDetails = '/callon/add/callOnDetailsPage';

  static const orderManage = '/order_manage/orderManagePage';
}

List<GetPage> routerPages = [
  GetPage(name: Routes.root, page: () => MyApp()),
  GetPage(name: Routes.login, page: () => LoginPage(), binding: LoginBinding()),
  GetPage(name: Routes.homePage, page: () => HomePage(), binding: HomeBinding()),
  // GetPage(
  //   name: Routes.RefreshLoadmorePage,
  //   page: () => RefreshLoadmorePage(),
  // ),
];
